import request from "@/utils/request";
import type { loginResponseData,loginData,userInfoResponseData } from "@/api/acl/model/login";

//发送登陆的接口
export function reqLogin(data:loginData) {
  return request.post<any,loginResponseData>("/admin/acl/index/login", data);
}

//获取用户信息的请求
export const reqUserInfo = ()=> request.get<any ,userInfoResponseData>('/admin/acl/index/info')

//退出登陆发送的请求
export const reqReset = ()=> request.post<any,any>('/admin/acl/index/logout')